from django.contrib.auth.models import AbstractUser
from django.db import models

# Create your models here.
class YongHu(AbstractUser):
    """自定义用户模型类"""

    class Meta:
        db_table = 'yonghu'	#自定义表名
        verbose_name = '用户'		#显示为用户表
        verbose_name_plural = verbose_name	#显示的复数形式

    def __str__(self):
        return self.username